#include"head.h"
int WINAPI WinMain(
	HINSTANCE hInstance,
	HINSTANCE hPrevInstance,
	PSTR nCmdLine,
	int nCmdShow
)
{
	hInst = hInstance;
	if (RegClass(lpszMainClassName, nullptr,hInstance) == 0)
	{
		return 0;
	}
	HWND hWnd = CreateWindow(lpszMainClassName, lpszMainWindowName, WS_OVERLAPPEDWINDOW, 0, 610, 300, 300, nullptr, nullptr, hInstance, nullptr);
	ShowWindow(hWnd, SW_SHOW);
	UpdateWindow(hWnd);
	MSG msg;
	while (GetMessage(&msg, nullptr, 0, 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	return 0;
}